convert array object to int[] c#

83

convert array object to int[] c# -

object[] objarr = new object[] {1,2,3 };
int[] arr = objarr.Cast<int>().ToArray();

Comments

Submit
0 Comments